Documentation for class character

Inherits from 	basic_object 

Properties declared in character 

Class Methods declared in character 
			  ascii_to_char(number) 

Methods declared in character 
	any 
		as_ascii 
		as_lowercase 
		as_string 
		as_uppercase 
		is_alpha 
		is_consonant 
		is_digit 
		is_greater_than(character) 
		is_greater_than_or_equal(character) 
		is_less_than(character) 
		is_less_than_or_equal(character) 
		is_lowercase 
		is_printable 
		is_punctuation 
		is_space 
		is_uppercase 
		is_vowel 

Class 
#begin_class
character 
The class character is a sub-class of the class basic_object. 
A character is typed as a backslash (\) followed by the character.
Ex:
\A is the character A.
Note: There are a number of special characters:
\space	(the space character)
\cr	(the carriage return character)
\nl	(the new line character)
\tab	(the tab character)
#end_class

Properties 

Methods 

#begin_method
as_ascii 
Returns the ASCII value of the character.
Ex:
\A:as_ascii
returns 65
#end_method

#begin_method
as_lowercase 
Returns the equivalent lowercase character.
Ex:
\A:as_lowercase
returns \a
#end_method

#begin_method
as_string 
Returns a string with the character.
Ex:
\A:as_string
returns "A"
#end_method

#begin_method
as_uppercase 
Returns the equivalent uppercase character.
Ex:
\a:as_uppercase
returns \A
#end_method

#begin_method
is_alpha 
Returns true if the character is a letter. Otherwise the method returns false.
Ex:
\A:is_alpha
returns true
\9:is_alpha
returns false
#end_method

#begin_method
is_consonant 
Returns true if the character is not a vowel (see is_vowel). Otherwise the method returns false.
Ex:
\A:is_consonant
returns false
\B:is_consonant
returns true
#end_method

#begin_method
is_digit 
Returns true if the character is a digit, and false if not.
Ex:
\A:is_digit
returns false
\9:is_digit
returns true
#end_method

#begin_method
is_greater_than(character) 
Returns true if the character is greater than character. Otherwise the method returns false.
Ex:
\a:is_greater_than(\b)
returns false
\A:is_greater_than(\b)
returns false
\b:is_greater_than(\b)
returns false
\c:is_greater_than(\b)
returns true
Note: These are equivalent to \a > \b, \A > \b, \b > b and \c > \b.
#end_method

#begin_method
is_greater_than_or_equal(character) 
Returns true if the character is greater than or equal to character. Otherwise the method returns false.
Ex:
\a:is_greater_than_or_equal(\b)
returns false
\A:is_greater_than_or_equal(\b)
returns false
\b:is_greater_than_or_equal(\b)
returns true
\c:is_greater_than_or_equal(\b)
returns true
Note: These are equivalent to \a >= \b, \A >= \b, \b >= b and \c >= \b.
#end_method

#begin_method
is_less_than(character) 
Returns true if the character is less than character. Otherwise the method returns false.
Ex:
\a:is_less_than(\b)
returns true
\A:is_less_than(\b)
returns true
\b:is_less_than(\b)
returns false
\c:is_less_than(\b)
returns false
Note: These are equivalent to \a < \b, \A < \b, \b < b and \c < \b.
#end_method

#begin_method
is_less_than_or_equal(character) 
Returns true if the character is less than or equal to character. Otherwise the method returns false.
Ex:
\a:is_less_than_or_equal(\b)
returns true
\A:is_less_than_or_equal(\b)
returns true
\b:is_less_than_or_equal(\b)
returns true
\c:is_less_than_or_equal(\b)
returns false
Note: These are equivalent to \a <= \b, \A <= \b, \b <= b and \c <= \b.
#end_method

#begin_method
is_lowercase 
Returns true if the character is a letter and is lowercase. Otherwise the method returns false.
Ex:
\A:is_lowercase
returns false
\9:is_lowercase
returns false
\a:is_lowercase
returns true
#end_method

#begin_method
is_printable 
Returns true if the character is printable. Control characters are not printable. Otherwise the method returns false.
Ex:
\A:is_printable
returns true
\9:is_printable
returns true
\nl:is_printable
returns false
#end_method

#begin_method
is_punctuation 
Returns true if the character is printable but not a letter or a digit. Otherwise the method returns false.
Ex:
\A:is_punctuation
returns false
\9:is_punctuation
returns false
\*:is_punctuation
returns true
#end_method

#begin_method
is_space 
Returns true if the character is \space, \nl, \cr or \tab. Otherwise the method returns false.
Ex:
\A:is_space
returns false
\9:is_space
returns false
\cr:is_space
returns true
#end_method

#begin_method
is_uppercase 
Returns true if the character is a letter and is uppercase. Otherwise the method returns false.
Ex:
\A:is_uppercase
returns true
\9:is_uppercase
returns false
\a:is_uppercase
returns false
#end_method

#begin_method
is_vowel 
Returns true if the character is a letter and is a vowel. Otherwise the method returns false.
Ex:
\A:is_vowel
returns true
\B:is_vowel
returns false
#end_method

Class Methods 

#begin_class_method
ascii_to_char(number) 
Returns the character with the ASCII code number.
Ex:
{character}:ascii_to_char(65)
returns \A
#end_class_method